Add missing error traps. (#149011, Thomas Leonard)
authorMatthias Clasen <maclas@gmx.de>
Mon, 2 Aug 2004 05:04:33 +0000 (05:04 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 2 Aug 2004 05:04:33 +0000 (05:04 +0000)
Mon Aug  2 01:02:57 2004  Matthias Clasen  <maclas@gmx.de>

* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
(gdk_check_wm_desktop_changed): Add missing error
traps.  (#149011, Thomas Leonard)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkevents-x11.c

index 6b319cad12933868661c8793f564f4bddbe47ef0..6559a9e0dc59743c3e3d9ac5b72dccf8564d4a47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Aug  2 01:02:57 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): 
+       (gdk_check_wm_desktop_changed): Add missing error 
+       traps.  (#149011, Thomas Leonard)
+
 Mon Aug  2 00:21:26 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktextview.c (blink_cb): Add the same warning
index 6b319cad12933868661c8793f564f4bddbe47ef0..6559a9e0dc59743c3e3d9ac5b72dccf8564d4a47 100644 (file)
@@ -1,3 +1,9 @@
+Mon Aug  2 01:02:57 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): 
+       (gdk_check_wm_desktop_changed): Add missing error 
+       traps.  (#149011, Thomas Leonard)
+
 Mon Aug  2 00:21:26 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktextview.c (blink_cb): Add the same warning
index 6b319cad12933868661c8793f564f4bddbe47ef0..6559a9e0dc59743c3e3d9ac5b72dccf8564d4a47 100644 (file)
@@ -1,3 +1,9 @@
+Mon Aug  2 01:02:57 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): 
+       (gdk_check_wm_desktop_changed): Add missing error 
+       traps.  (#149011, Thomas Leonard)
+
 Mon Aug  2 00:21:26 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktextview.c (blink_cb): Add the same warning
index 6b319cad12933868661c8793f564f4bddbe47ef0..6559a9e0dc59743c3e3d9ac5b72dccf8564d4a47 100644 (file)
@@ -1,3 +1,9 @@
+Mon Aug  2 01:02:57 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): 
+       (gdk_check_wm_desktop_changed): Add missing error 
+       traps.  (#149011, Thomas Leonard)
+
 Mon Aug  2 00:21:26 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktextview.c (blink_cb): Add the same warning
index 3ec9ca2bf9380204856daffe738707d7a53758e4..da42d5b31096c81c0c58a22ab063fb6593251fcc 100644 (file)
@@ -462,12 +462,15 @@ gdk_check_wm_desktop_changed (GdkWindow *window)
     {
       gulong *desktop;
       
+      type = None;
+      gdk_error_trap_push ();
       XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display), 
                          GDK_WINDOW_XID (window),
                           gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_DESKTOP"),
                          0, G_MAXLONG, False, XA_CARDINAL, &type, 
                          &format, &nitems,
                           &bytes_after, (guchar **)&desktop);
+      gdk_error_trap_pop ();
 
       if (type != None)
         {
@@ -501,10 +504,13 @@ gdk_check_wm_state_changed (GdkWindow *window)
   toplevel->have_maxhorz = FALSE;
   toplevel->have_fullscreen = FALSE;
 
+  type = None;
+  gdk_error_trap_push ();
   XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display), GDK_WINDOW_XID (window),
                      gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_STATE"),
                      0, G_MAXLONG, False, XA_ATOM, &type, &format, &nitems,
                      &bytes_after, (guchar **)&atoms);
+  gdk_error_trap_pop ();
 
   if (type != None)
     {